package src.event.events;

import src.event.Event;

/**
 * <b>Overview</b>
 *
 * <b>Responsibilities</b>
 *
 * <b>Collaborators</b>
 *
 * <b>Implementor</b> - Bruce
 * <b>Tester</b> - Tim
 *
 * @author Bruce
 */
public class ConsoleUpdateEvent extends Event
{
	/**
	 * The String that will be printed to the Console.
	 */
	private String consoleOutput;

	/**
	 * Creates a new ConsoleUpdateEvent.
	 *
	 * @param output the output to the console.
	 */
	public ConsoleUpdateEvent(String output)
	{
		consoleOutput = output;
	}

	/* (non-Javadoc)
	 * @see src.event.Event#toString()
	 */
	@Override
	public String toString()
	{
		return "Console output event: " + getConsoleOutput();
	}

	/**
	 * @return the String that will be printed to the Console.
	 */
	public String getConsoleOutput()
	{
		return consoleOutput;
	}
}